import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';

@Injectable({
  providedIn: 'root',
})
export class WebInfoService {
  baseUrl = 'pets/petsWebInfo';

  constructor(private http: _HttpClient) {}

  latestInfo() {
    return this.http.get(this.baseUrl + '/latestInfo');
  }

  submit(params: {}) {
    return this.http.post(this.baseUrl + '/submit', params);
  }
}
